const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 用户相关数据
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  // 用户名
  name: state => state.user.userInfo.username,
  // 手机号
  photo: state => state.user.userInfo.mobile,
  // 部门
  depts: state => state.user.userInfo.departmentName,
  // 工号
  worknum: state => state.user.userInfo.workNumber
}
export default getters
